fix mex to compile at home