Fix mingw build.