compile and install libffi