fix usage of inet_*() functions in mhttp.c