Fixed some syntax errors ignored by GCC to make the engine compile with clang