socket: getsockname doesn't work on unbound windows sockets
Merge pull request #49 from tmatth/winsock_fix

socket: getsockname doesn't work on unbound windows sockets