Adding libffi to autogen dependencies to fix the build