Fixed mingw32 compilation