Install libyaml to avoid failed Ruby compilation

I saw this problem while installing Ruby 2.1.4. Installing libyaml first
solved the problem.

https://github.com/sstephenson/ruby-build/wiki#suggested-build-environment