Fix compile with --gdbserver
SERVER-11613 Fix some brokenness in test logging

Changes:
* smoke.py captures both stdout and stderr of subprocesses
* Log buffering reduced (main log() function already was line-buffered).
* printStackAndExit writes to stdout rather than stdin.