add libffi compilation -- tag along with caching of R binary