Select most-specific dependent library to bundle on MacOS.