Add herd.c to src and Makefile.am