Revert "build: Use -R instead of -rpath"

This reverts commit 8c53b7167b77a10c5c45982831eefc5ea022350d.

See 26471ad4c13c615761518b3aebf395b983fff498 for explanation.