Improve bundled library check.

IMP DSOs should not be linking to any library (other than other parts of
IMP or RMF) in /usr/local/lib/. Such libraries (installed by homebrew)
typically won't exist on the user's machine.
Use the name that was linked against.
Add missing bundled library.
echo no longer accepts (or needs) the -e option.
Make sure we don't use the echo builtin.