Make compiler switches compatible to clang.
Remove some white spaces.
Use struct io instead of struct peer for list iteration.

Using an extended field designator is not allowed in offsetof.