libffi: update to 3.1 (soname bump); revbump pkgs that link against libffi.