Simplify the handling of shared library version numbers