Include errno.h, and declare errno if not defined.