Add dependency to pthread