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

Tweak SONAME handling