Fixed Matlab R2014a mex output flag