Patch for https://bugzilla.icculus.org/show_bug.cgi?id=5931 by Eugene C. from 2013 plus recent fix for tcMod rotate. I merged the changes into the OpenGL2 renderer though the fix for tcMod turb doesn't translate.
Bump base SDK from 10.5 -> 10.7 Just use the builtin __APPLE__
Affectly no change for desktop OpenGL. Use correct types for OpenGLES support.