add zgrviewer to the build system