link against gthread on old glib

if glib is ancient, link against gthread ... fixes centos5 build

thanks re-boot
Merge remote-tracking branch 'origin/7.32'