Remove errno codes that don't exist in musl.
Provide additional errno messages.
Remove some errno settings.

This is a follow up to the previous commit that removed them from
src/library.js.
Merge pull request #1494 from waywardmonkeys/errno-changes

Errno changes