Fixed mingw build