Updating MEX compilation script.