fix a couple compiler warnings/errors (depending on compiler) for Matlab engine code