stream: add support for UNIX streams