Add a dependency to lpthread to avoid errors on some machines