Detect pthread_getname_np in configure

Addresses https://github.com/facebook/libphenom/issues/38