Fix mingw warnings
5 files changed