Remove extern int references to errno and rely on the #include

Fixes compilation against glibc-2.3+.

[Description and fix to error.3 by Ismael Luceno <ismael@iodev.co.uk>]