added util.h, to replace helperMEX.h in the mex-less version.