sync_ostream::write is private now