Build fix for Windows and RHEL 5

fixes #7433
Cli: Add repository add --{zone,template} support for repo objects

refs #7255