fix mingw compile