Fix mingw32 building