Fix compile errors with mingw64

Fix two errors:

win32.c:36:9: error: format '%s' expects argument of type 'char *', but argument 5 has type 'void **' [-Werror=format=]
         LOGE("%s: %s", s, msg);
         ^
and
win32.c:47:9: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Werror=format=]
         LOGE("ioctlsocket failed with error: %ld\n", iResult);
         ^