Fix compilation on gcc => 4.7.0 by including unistd.h

Same issue as here: http://code.google.com/p/photivo/issues/detail?id=99
Fixed build on Ubuntu / Qt 4.8. I hope this doesn't break windows build.
Give errors instead of crashing if dnssd service init fails.