Add missing require in custom directives