configure: add opengl detection