link thread library