CMake: add OpenGL test

Explicitly test for OpenGL and mark it as a required dependency.
Fixes #10.
Merge pull request #12 from csrf/test-for-opengl

CMake: add OpenGL test