Fix warnings on Ruby 2.1.2.