mingw build fix