fix issue of that 'daemon' function can't be found. add AC_SEARCHLIBS(daemon, [bsd]) to configure.ac will solve this.