Add to_idn() function.
Conditionally compile to_idn depending on presence of libidn.
Add function so we can know at runtime if we can use to_idn().
We are using a newer ppport.h