mingw64 workaround