Added OSX entry point and OpenGL context

Added OSX entry point and OpenGL context