As explained in #10, compiling YANG modules that declares new extensions requires packaging that schema with extension handlers so that the compiler can be instructed on how to handle the newly declared extension statements.
Will need to improve documentation with examples on how to achieve this.
In the meantime, you can reference complex-types to see how this was achieved.