copy_stream: enough to get this working under MRI 1.8