Fix streaming (Bi_stream), which was not working on 32-bit platforms.
Contributed by Hendrik Tews <hendrik@askra.de>.