Binary package “libffi-dev” in ubuntu trusty

Foreign Function Interface library (development files)

 This package contains the headers and static library files necessary for
 building programs which use libffi.
 .
 A foreign function interface is the popular name for the interface that
 allows code written in one language to call code written in another
 language.