compiles with mingw