Add daemon.c example with CMakeList.txt