Backport libyaml regression fix to lucid

The fix for CVE-2013-6393 introduced a regression that's since been
fixed in precise.  This change backports that fix to lucid.