Implement bzip2 stream wrapper and bzip2 extension registration