ifdef all errno constants (fix FreeBSD build error)