bz2 changes for phpng