expose errno

Patch from Geert Jansen <geertj@gmail.com>
update THANKS