MINGW32 fixes