Compile with clang and use os x 10.8 as target
Fix opengl fullscreen setting on os x > 10.6