Add custom build of mogenerator compatible with templates.