fix WIN Mingw compilation