libcore: Add a smattering of POSIX error codes to the libc module.

r? @graydon

I'm not sure which POSIX revision this is, or even admittedly if the constant values are specified at all…