correctly automatically build the logtbl (thanks mark for pointing out)
forgot wsastartup when using netlog (thanks mark for pointing out)