Fix shared library SONAME

This pull request fixes the SONAME for the new dmd versioning system (with regression fixes).