patched c++ compiler warnings in starchHelpers.c