Compile as shared library with soname.