Workaround absence of `kcmp`.