fixed mingw compilation
3 files changed