Fix for Windows terminal output when cross-compiling from Linux with MinGW.