build: Check for bzlib.h in configure

We previously only checked for the bz2 library and not for the
headers. This is insufficient since most distributions install
libraries without headers unless a special dev package is installed.