Switch stdout to line buffering
Switch stdout to line buffering

Use line buffering (instead of block buffering) so that messages arrive
immediately in systemd-journald, tail -f debug.log, and the like.

Rebased-By: Wladimir J. van der Laan <bbc07dc96bb50bf6868a2ddfc4dae14fbed703d9@gmail.com>
Rebased-From: 283e405

Infernoman/crowncoin,Crowndev/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,domob1812/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,domob1812/crowncoin