CMake: add OpenGL test

Explicitly test for OpenGL and mark it as a required dependency. Fixes #10.