fix issue #244: make bz2 dependency optional