link the threading lib