Update BindToSocketAndWriteQuery method for Win8.1

Because of this problem : http://blogs.msdn.com/b/wsdevsol/archive/2013/12/19/datagramsocket-multicast-functionality-on-windows-8-1-throws-an-error-0x80072af9-wsahost-not-found.aspx, it didn't work under Windows 8.1.