Fixes build issues with testing turned on due to not finding R libraries.
Merge pull request #5 from aashish24/link_R_libs_properly

Fixes issue #4