Support for building with mingw on windows