Revert "YAML::ENGINE was removed in [Bug #8344]"

This reverts commit fa6aac2ab19762775fba78c264159efb4fcf3ecf.