patched c++ compiler warnings in starchFileHelpers.c