Fixing compile with gcc on mac