Change std::ostreams to llvm::raw_os_stream

Several changes to remove std:ostreams support
and instead relying on raw_ostream from LLVM.

Furthermore:
  * removed "using namespace std"
  * minor cleanup of includes