fix the link error in new version macos