patched compilation warnings for starchHelpers.c