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