Add "flush" method to OStream and Writer classes.