Fixing GCC compiler errors (fpermissive)