New version expects `pthread_cancel()` to be available. This reverts commit 16b74e330bfda61800749650012e8829876ab5e4.