Added support for YAML-CPP 0.5+.

The new yaml-cpp API removes the "node >> outputvar;" operator, and
it has a new way of loading documents. There's no version hint in the
library's headers, so I'm getting the version number from pkg-config.

This is a port of @ktossell's patch for map_server.