XF.define: add required dependencies

Closes #171