fix for mingw-w64