Simplify shared library version computation.