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