OS X: Improvements for getting install name of dylib.

In the case of a multi-arch dylib where none of the architectures
is the host architecture, otool -D returned multiple install names.
Merge topic 'rpath-on-mac' into next

ff01f8b OS X: Improvements for getting install name of dylib.