Fix disabling IPV6_V6ONLY on sockets, issue #511
Fix logfile path on Windows

Fixes issue #510 reported by @JDowny