Adding libffi support