fix missing functions in __rvm_run_wrapper, fix #2978