add pthread to link
update doc