video: make opengl work on osx