Use zlib pkg-config
Fix mismatched new[] + delete (closes #1)