Port Ruby 1.9 YAML::EngineManager