[libffi] disable static, fix paths