Undefine and define-away `const' after inclusion of errno.h, not before. Suggestion from Bruno Haible.