fix mingw-w64 build