Additionally, ensure shared libraries are versioned. This fixes a regression from the autotools-based era that was not carried into the CMake era.