s3-waf: check for pthread support.