libreplace: replace inet_ntoa() when it is missing