[clang-tools-extra] Prevent linking to duplicate .a libs and dylib