build: update ax_pthread.m4 for various clang fixes.