Fixed mingw compilation warnings