Tweak SONAME handling
Merge pull request #63 from JuliaLang/sf/soname2

Tweak SONAME handling