Allow configuring bzip2 library location
Fix dynamic loading of libbz2