ae.c: set errno when error is not a failing syscall.

In this way the caller is able to perform better error checking or to
use strerror() without the risk of meaningless error messages being
displayed.
Better error reporting when fd event creation fails.
Merge remote-tracking branch 'antirez/2.6' into rdio-2.6