Then, I compiled vlc and xine-lib.
They DID try to use /usr/lib/libGL.so, so compilation failed.
I uninstalled 319.17, then installed 310.44 driver.
After this, vlc and xine-lib do use /usr/lib64/libGL.so, and the compilation ended successfully.