Fix compilation error in Ubuntu 11.04
Add DESTDIR to debian makefile.
Use pkg-config to find header files and libraries.
Add debian package files.
Add cmake files.
Add CPack deb generation code.
Avoiding zombie processes.
Update debian release version in CMakeLists.txt
Use calloc instead malloc.
Use strdup instead malloc+strcpy.
Use alloca and strndup instead of part of malloc.
Fix compilation warnings.
Check daemon function exists.
Fix lua os.execute always returning -1.
Remove obsolete makefiles.