Attempt to fix C++ integ test on windows

- Ensure stream content is flushed for library