fix mingw build issue