More support for YAML-CPP 0.5+

The new API doesn't have a method for mapping nodes to line numbers, so line
numbers won't be correct. The rest of the features should work.