schema compile FEATURE two step unres resolution

There is module unres resolved after the module
is compiled and global unres that is resolved
after all the newly implemented modules are
compiled.
diff --git a/src/parser_yang.c b/src/parser_yang.c
index 39e719e..702a3d2 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -4529,6 +4529,7 @@
     *context = calloc(1, sizeof **context);
     LY_CHECK_ERR_RET(!(*context), LOGMEM(ly_ctx), LY_EMEM);
     (*context)->format = LYS_IN_YANG;
+    (*context)->unres = main_ctx->unres;
     (*context)->pos_type = LY_VLOG_LINE;
     (*context)->line = 1;
 
@@ -4587,7 +4588,7 @@
 }
 
 LY_ERR
-yang_parse_module(struct lys_yang_parser_ctx **context, struct ly_in *in, struct lys_module *mod)
+yang_parse_module(struct lys_yang_parser_ctx **context, struct ly_in *in, struct lys_module *mod, struct lys_glob_unres *unres)
 {
     LY_ERR ret = LY_SUCCESS;
     char *word;
@@ -4599,6 +4600,7 @@
     *context = calloc(1, sizeof **context);
     LY_CHECK_ERR_RET(!(*context), LOGMEM(mod->ctx), LY_EMEM);
     (*context)->format = LYS_IN_YANG;
+    (*context)->unres = unres;
     (*context)->pos_type = LY_VLOG_LINE;
     (*context)->line = 1;