Tests should link to pthread