Add configure options for zlib and lzma support

Without configure options the support is automagic so it can't be easily
disabled if the required libraries exist on the build machine.