OpenGl OSX 10.9 fix

This branch fixes OpenGl issue reported by issue #427