Use pkg-config to check for OpenGL.