lib, src: remove errno global

Remove the errno global. It's a property on the process object now.

Fixes #3095.
test: fix tap output on windows

Test output is always \n and not platform dependent
Merge remote-tracking branch 'origin/v0.8'