hooks/post-install/04-generate-runtime-deps: use sed -E explicitly to avoid compat issues.
hooks/post-install/03-strip-and-debug-pkgs: only add versioned shlib to shlib-provides.

This really avoids adding unwanted private shared objects or others that are
only meaningful at runtime and not for linking.