separated set_paths and compile_mex