fix mingw build