fix avahi compile-time warnings:
  - annotate unused function argument as such.
  - cast resolve_callback as AvahiServiceResolverCallback.