Added functionality to choose context version specification on OSX. Needs
to be tested on older versions. Fixed the invalid drawable error when
deleting the context.