Better yaml-cpp detection