fix mingw build block