Unify _ksdebug definitions.