Fix compile issues.

Still hanging up on a not found EACCESS definition that gets pulled in
through various includes by errno.h.