ostream insert implementation for windows c++ library