remove redundant include path
const correctness
align all socket types to sizeof(long) to facilitate casting back and forth