fix for mingw64