Added librt.so into linking for linux
Update R location on linux
Fixes/hacks around linux issues