Updated MATLAB WIN32 MEX file