Change starsha to use '\n' instead of std::endl in most cases

This will speedup output, especially when using --print-cmds. std::endl forces a flush of all output, which inevitably slows things down.

We keep the flush when we're in exceptional states to force the messages out ASAP