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
Give errors instead of crashing if dnssd service init fails.