fix mingw compilation