Fixed mingw 4.8 compilations errors