libglvnd libraries should be linked with pthread to help alleviate problem with libstdc++
For details, refer to mesa/mesa#3199 (closed), and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96817
Linking libglvnd libraries with pthread will cause programs to pull into pthread early, hopefully prevent this problem from happening for most of the users.