fix bzip2 decompress exception issue on mac