Depend on Varnish ABI (if defined.)
Use macros instead, add some safeguards.

Inspired by pull request to libvmod-ipcast from Martin Probst.