Add pre-depend, add rpath for Solaris and POSIX.