After a succesful configure, make exits with snipped
gclosure.c:29:17: fatal error: ffi.h: No such file or directory compilation terminated.
An old thread, but anyway...
After putting the required files in a location where they could be found, I got it working:
cp /usr/include/x86_64-linux-gnu/ffi* /usr/local/include/ cp /usr/lib/libffi.so /usr/local/lib/