Substitute m4 obsolete macros
Merge pull request #66 from comzeradd/m4

Substitute m4 obsolete macros
[build] add cmake build system

 - add missing includedir for cmake
 - remove shared library version
 - python support
Resolve pidfile resource leaks

This patch resolves resource leaks caused by not closing the file streams upon
an write error.
[lib] removal of unused code
[build] fix the missing inclusion of config.h
[lib] add support for BSDs
elimate whites
[lib] add ccnet_daemonize