Don't link against OpenGL libraries if using OSMesa.