Attempting to compile Handbrake using jam resulted in a strange error, something like:
/usr/bin/ld: cannot find -lz
error: C compiler
cannot create executables
According to the Internets, I needed to install the development version of zlib. However, zlib-devel does not appear to exist in any Ubuntu apt repository. Ultimately, this command installed the necessary library and resulted in a successful compile:
sudo apt-get install zlib1g-dev