another attempt to fix mingw compile