Fix MRI Ruby 2.x warnings