safer OpenGL detection
opengl_check moved into individual build function
Merge pull request #94 from l3iggs/patch-4

safer OpenGL detection