RVM fixes for Solaris

Use GNU utils. Use ldd to identify missing deps. Install libyaml from OpenCSW. Some other small fixes.