MINGW build fix