Now runs correctly on MacOSX. OpenGL profile must be passed to QGLWidget constructor in order to get core profile. Consolidated shaders and added #330 shader program specifically for __APPLE__ since one can only get a 4.1 context on 10.9 Mavericks.