better instructions here: http://pj.freefaculty.org/blog/?p=315
download bzip2 from http://www.bzip.org/
make the shared libraries with:
make -f Makefile-libbz2_so
then need to make a symlink:
ln -s libbz2.so.1.0.6 libbz2.so.1
download xz (LZMA) from http://tukaani.org/xz/
configure, make
shared libraries are in src/liblzma/.libs/
add these dirs to LD_LIBRARY_PATH?