Fix cppcodecompletion test

Partly a porting bug by me (whoops)
Partly fix gdbtest

Still not working, though
Fix qthelpplugintest
Fix test_manpagemodel if kio-man is broken
Don't compile qtprinters test for now

Pretty-printers are not Qt5 ready yet.
Remove debug output which caused massive slowdown