Remove warnings on Ruby 2.1