Rearrange headers, C first then POSIX then extensions.

Should probably stop using <err.h>
Use a define for max fds instead of hardcoded value.
Default poller using poll.