Created osx::chooseGLPixelFormat() and osx::createGLContext() functions