use automake conditional  around pthread test