auto-compile mex files