Fix SONAME generation.