Add libffi prerequisites support, garbage purged

Change-Id: Id3550c3d45e0746292e9fda40b69bdaee09df369