link against gthread on old glib

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

thanks re-boot