Fixes for Ruby 2.2.0

For rubby 2.2.0.
`YAML::ENGINE` was removed in 2.2.0 - https://bugs.ruby-lang.org/issues/8344

This is all such a shitshow.