Don't use sed's -i flag as Solaris doesn't know it in libffi/Makefile