put OpenGL support under conditional compilation: version(USE_OPENGL)