Lower cmake to 2.6
ifdef EAI errors not in RFC.

Add a couple of linux specific ones.
epoll support.