CMake: Fix yaml-linking on Mac OS X.