Prepare for Ruby 2.2.

https://bugs.ruby-lang.org/issues/9593