Fixed up MSVC++ warnings and stream manipulators