r: Link libR shared library into lib

Else it cannot be implicitly found when compiling software that depends
on it.