do not use -rpath-link linker option on Solaris.

Patch from Karel Gardas <karel.gardas@centrum.cz>.