Add link to pthread library