stream: do not leak `alloc_cb` buffers on error

Always pass previously allocated (if any) buffer, when calling
`read_cb()` on error.
win: fix buffer leak on error in pipe.c
Merge remote-tracking branch 'origin/v0.10'

Conflicts:
	src/win/pipe.c
build: freebsd link with libelf if dtrace enabled
build: fix SunOS and AIX build with autotools