win32: work around broken winsock prototypes
win32: work around broken winsock prototypes

Re-#define a few socket functions to work around winsock's prototypes
having, eg, "int *" rather than "unsigned int *", or "char *" rather
than "void *".

(Also fix two places that mistakenly assumed guint==guint32.)

https://bugzilla.gnome.org/show_bug.cgi?id=688109

djdeath/glib,tamaskenez/glib,endlessm/glib,djdeath/glib,cosimoc/glib,cosimoc/glib,gale320/glib,mzabaluev/glib,johne53/MB3Glib,mzabaluev/glib,krichter722/glib,krichter722/glib,ieei/glib,endlessm/glib,lukasz-skalski/glib,cosimoc/glib,johne53/MB3Glib,tchakabam/glib,gale320/glib,cosimoc/glib,MathieuDuponchelle/glib,Distrotech/glib,MathieuDuponchelle/glib,gale320/glib,Distrotech/glib,Distrotech/glib,endlessm/glib,cention-sany/glib,lukasz-skalski/glib,tchakabam/glib,djdeath/glib,johne53/MB3Glib,endlessm/glib,cention-sany/glib,Distrotech/glib,krichter722/glib,tamaskenez/glib,Distrotech/glib,lukasz-skalski/glib,djdeath/glib,gale320/glib,cention-sany/glib,johne53/MB3Glib,johne53/MB3Glib,ieei/glib,krichter722/glib,mzabaluev/glib,tamaskenez/glib,johne53/MB3Glib,ieei/glib,ieei/glib,MathieuDuponchelle/glib,tamaskenez/glib,tamaskenez/glib,mzabaluev/glib,gale320/glib,djdeath/glib,krichter722/glib,MathieuDuponchelle/glib,tchakabam/glib,MathieuDuponchelle/glib,tchakabam/glib,lukasz-skalski/glib,tchakabam/glib,cosimoc/glib,endlessm/glib,ieei/glib,cention-sany/glib,mzabaluev/glib,cention-sany/glib,lukasz-skalski/glib