Search for inet_pton() in configure

Looks like mingw env doesn't define this function yet, so we have to search it first to avoid breaking building in mingw env.

Signed-off-by: Huang Le <4tarhl@gmail.com>