try to fix mingw compile