try to set SO_REUSE on server sockets (helps to avoid failures when
some clients sockets are ine TIME_WAIT state when servers are restarted)
Also, use const char setsockopt arg on windows.