Make it possible to compile with mingw