Ruby 2.1 support

See #635