[CMake] Fix Xcode build with LLVM_ENABLE_OBJLIB.