stdio: Make C++ tests work on mingw.