Started adding support for OpenGL version selection on OS X

Needs issue #176 to be fixed.