better error handling cross-platform/cross-version; fixes #10
Merge branch 'master' of github.com:nigelsmall/httpstream