configure: check for pthread_cancel.