lib, src: remove errno global

Remove the errno global. It's a property on the process object now.

Fixes #3095.

Reviewer: @isaacs or @TooTallNate