Move error library to lib/errno.

Sprinkle on more hacks.