Fixed check for include of pthread.h