Fix deprecation warnings
Remove support for Ruby 1.9