Added a configure option to force the choice of gethostbyXXX functions

This adds a way to workaround a situation where the configure script
discovers that thread-local storage is available but it's not
available at run time.

As stated back in 2008:
http://lists.cistron.nl/pipermail/freeradius-devel/2008-September/012581.html