Flush ostreams before forking.

Content buffered for cout/cerr/clog in the parent process might get output
in both the parent and child if we don't flush the streams. So, flush 'em!