Fix compatibility with varnish 4