Merge pull request #6566 from lioncash/maclibs CMakeLists: Link in system framework libraries explicitly on macOS