Always use shell builtin grep.

Fix #1608
clean automated compiler selection for osx, update #1580
clean shared/static compilation switches, update #1580
Merge branch 'master' of github.com:wayneeseguin/rvm