Update pthread m4
Modify how we work in builds in Jenkins.