mingw compile fix