[cmake,release] Provide a substitute for CMakePackageConfigHelpers.

Apparently it is not available with some older versions of CMake.
Therefore we provide a poor man's alternative for it, if it is
not there.