Corrected some files to compile with Mingw c++