remove unnecessary epoll header
use exact socket size
fix assignment of signed to unsigned integer
use exact socket size at other places
add missing header - might solve problems on macosx systems
remove use of ulong (and also change it for the other put function); it does not seem to be available on MacOSX