compiles under mingw