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.
Merge pull request #345 from radhermit/automagic

Add configure options for zlib and lzma support