Fixed mingw32 build