[cli-proxy] flush stdout with each character printed

Apparently when Xcode invokes the app in the simulator, unbuffered
stdio is used, but something-buffered (probably line-buffered) stdio
is used when the app is invoked from the simulator's home screen or
via a URL (e.g. appbackup://bad-behavior).