remove config.h includes
removed outdated files
removed config.h include from headers
[lib] added threadmanager to autotools
added missing includes