Fix cross build for mingw32.