Add pthread to link libs