[bzip2] osx fixes