now it compiles with MinGW