try to fix mingw compile error