libffi: the build requires gnu-sed

OSX ships with a bsd styled version of sed which fails when editing the
makefile
Merge pull request #591 from jcftang/wip-liffi-needs-gnu-sed

libffi: the build requires gnu-sed