fix mingw32 build