Fixed warnings due to Ruby 2.1

Nothing spectacular.