Adding explicit pthread dependency.