fix to matlab compile bug on unix