Merge pull request #900 from cduclos/avahi-crash-on-dlclose

Fixing a problem with dlclose and avahi