patched c++ compilation warnings for starchcat.c