Make it easier to build on mingw