[jhc] darcs patch: include errno.h in generated files to get around bug