removed calls to deprecated parts of JZlib