Add desired libraries -ljpeg and -lbz2.

Linker seems convinced they're necessary.