Debug output/build fixes

- parallel build fixes for tests
- remove dbIn
- use dbOut in all debug output
- remove debug code (by #if 0) that breaks the behaviour
- fix osSetStreams (though that fix didn't change the behaviour)