Include proper headers to prevent compile problems on some systems
Use "const" qualifier to prevent compiler warnings
Add support for version 1.0.6 of bzip2