Support cancellation in librt.