fixes for mingw win64