libffi: the build requires gnu-sed

OSX ships with a bsd styled version of sed which fails when editing the
makefile