r: Link libR shared library into lib on OS X

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