copied defintions to afunix.erl, since some distros use none source kernel/lib include failed, fixed some warnings for R15