r: Link libraries, headers, & frameworks

Otherwise they cannot be implicitly found when compiling software that depends on them, e.g. libraries for other languages that talk to R.

Also replace deprecated `ln_s` with `install_symlink`.