Fix for mingw64.