Remove pthread from linkage