r: add enable-R-shlib and enable-R-static-lib flags (passed to configure...

Added shared library flags that get passed on to ./configure, I needed them, maybe others do too. 
First time doing something like this, yay! Looks simple but sorry if I did anything dumb.