fix mingw x86_64 build