FindOpenGL: respect legacy preference for OpenGL and GLX libraries

Fixes: #27299
1 file changed