socket constant moved to eja.c to allow cross compilation