Fixed mingw compilation