Fix ostream compile error on msvc 7.1.