win32/mingw build fixed