Adding in R_LIBRARIES for build issues.
Merge pull request #29 from aashish24/fix_R_linking_issues

Adding in R_LIBRARIES for build issues.