use __rvm_setup_compile_environment for jruby, extract requiremnts_osx_java_fail, closes #1810
separate git to be used only to *-head installations, closes #1807
add a check for xcode at least 4.6.2 if installed, closes #1797
remove extra git check from osx_brew, update #1807