addrmask_to_string(): use inet_ntop() on unix, and getnameinfo() only on win32