Add explicit check for libz

Fixes static linking and libpng won't link without it anyway.
Fix typos in config API usage
Merge branch 'master' of https://github.com/chocolate-doom/chocolate-doom