Disable multilib directories.  Fixes packaging issues on at least SunOS
64-bit, possibly others.

Patch from obache.
Add pthread buildlink.
Use `` instead of $(), fixes bootstrap on older SunOS versions which have
the legacy /bin/sh.

Fix from asau.