fix warning in cgmtoolbox, and popstar makefile