fix pkg building
stream_wrap: backport writev
http: simple cork/uncork helpers