Build shared libs by default in cmake builds.
Add missing optional Cg library link target to gobj.