Fixed compilation errors and warnings.
Since MinGW doesn't seems to support '#include "???.c"' properly, it was necessary to import the whole file inside instead.