socket: fix address printing when using get nameinfo

Was breaking make check with mingw