Fix MINGW32 builds on some systems