rhash: install static and dynamic libs

Closes #28567.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>