Added use of OpenGL 4.1 profile token on OS X.

Fixes #395.
Fixed software renderer being selected on OS X.