add flush method for stdoutProxy, for compatibility