avahi: fix build on darwin

Fixes http://hydra.nixos.org/build/5462343