fix windows.cpp compile for newer versions of mingw