Fix most of BBI code to handle files >2GiB.
(first-adjacent stuff still to be done...)