Synchronize stdout and stderr (for the benefit of Windows).