Some fixes after Roma's review.

 + nonblock after accept
 + define SO_PROTOCOL, SO_TYPE constants for centos 5.0