Fix R paths, include C compiler and some useful R packages.