Fix bzip2 compression of files > 4 GiB
Fix bzip2 compression of files > 4 GiB

Bzip2's 'avail_in' parameter is declared as an unsigned int, so
assigning a size_t length to it led to silent truncation.

Fixes #2111.

peti/nix,dtzWill/nix,layus/nix,shlevy/nix,NixOS/nix,vcunat/nix,dtzWill/nix,layus/nix,shlevy/nix,rycee/nix,rycee/nix,peti/nix,peti/nix,ehmry/nix,vcunat/nix,layus/nix,shlevy/nix,NixOS/nix,rycee/nix,vcunat/nix,layus/nix,NixOS/nix,ehmry/nix,ehmry/nix,layus/nix,NixOS/nix,pikajude/nix,zimbatm/nix,pikajude/nix,shlevy/nix,peti/nix,zimbatm/nix,vcunat/nix,pikajude/nix,rycee/nix,dtzWill/nix,ehmry/nix,dtzWill/nix,zimbatm/nix,dtzWill/nix,peti/nix,shlevy/nix,ehmry/nix,ehmry/nix,NixOS/nix,rycee/nix,zimbatm/nix