backport from libyaml-1.1.6
Merge pull request #187 from tenderlove/libyaml-0.1.6

backport from libyaml-1.1.6