configure: Include pthread.h before pthread_np.h