Fixes for Ruby 2.2.0

For rubby 2.2.0.
Yeah, but Shopify still relies on it to switch to Syck the first time.

https://github.com/Shopify/shopify/blob/master/lib/versioned_serializer.rb#L3-8