use non-unicode version of gai_strerror to circumvent wchar conversion error