use R CC and -fPIC flags

- compile as R CMD make
- quieten clang warning about unused (knet macro) functions