bootstrap: Rely on autoreconf to run libtoolize

This avoids running libtoolize twice and fixes an issue on
platforms where libtoolize has a different name.
Use HAVE_LIBZ/HAVE_LIBBZ2 to detect presense of libz/libbz2

After changes to configure.ac, HAVE_ZLIB_H and HAVE_BZLIB_H are no
longer set. Instead use HAVE_LIBZ and HAVE_LIBBZ2.
Disable writing solution to compressed file

Testing with compression enabled resulted in failure to open the
file using `gzopen`. Compression is disabled until the problem can
be further diagnosed.