util: let `inherits` do more compatiblity