Revert "Cleanup: make helper libraries static and don't install them."
Revert "Remove obsolete export macros."
Revert "Cleanup: remove obsolete hacks, it's all static libs now."

This is all was a big waste of time. Thanks to the static initialization
that is required to register the custom DUChain items we end up with
crashes in the unit test... ugh :-/

This reverts commit 41298e1855023d921b3a2f4e28f4281d48d86d74.
This reverts commit d66211108620cc0acd0d203cd100ffd15742ba18
This reverts commit ddac25814c9151c027aeeb8177dde28add2d4f5b
Fix tests, use ecm_add_test and use qDebug().

We cannot reuse another debug category since its not getting exported.
Remove obsolete code
Make the test work.

Apparently QTEST_KDEMAIN is not working anymore.