add thread library (by clone)