Make Rscript work for linux binary package, and use it to obtain the build variables

I *think* this will actually also make it possible to build against any other installed version of R, but I didn't test it so there's probably a bit of work to do for that. I just wanted to send an as-small-as-possible pull request with only "a view towards" linking against system R. Hopefully, you can review and merge this easily.
hey @tkluck
i'm migrating the code to set up R_HOME and load paths into the JASPEngine itself (i think i got the idea from an earlier pull request from you, and was like "of course that's how it should be done", and i'm working on making JASPEngine self-contained) so i wouldn't worry about this code in enginesync.cpp
cheers