Updates for Varnish 4

I don't code C often, but this seems to be working.