Add libyaml to the dependency list.

See #1047