Creating modreg.c from old module_registry

About to pull apart