address ticket:1182, moving from zlib-dynamic to zlib and adding back in no-dso