Use -h rather than -soname; fixes dynlibs on Solaris 10; trac #4973