Add -Wl,-soname= for Solaris and POSIX.