fix spelling
fix compilation without multithread
use TCP_NODELAY on more platforms (including windows)
fix comments
fix warning
fix warning