fix for unix daemon compilation