MacOSX GL: changed deprecated OpenGL dynamic loading logic to the new one / ability to build with OpenGL