Merge pull request #4372 from pks-t/pks/xcode-linking cmake: fix linking in Xcode with object libraries only