Fixed warnings that occur with Ruby 2.0