specify @global as GEM_HOME when installing rubygems, fix #2724
ruby-2.1.0+ should work just fine with gcc on osx-10.9+, fix #2695
add --extensions flag for gem pristine on new rubygems, fix #2684
update tests to be faster, update #2735
update tests for osx
update tests for osx