abstract static/shared code, fix #1439
clean __rvm_setup_compile_environment
Merge branch 'master' of github.com:wayneeseguin/rvm