Retooled ZLIB to throw exceptions inside and to return normal data to application on failure.