fix building for wxqt-android with sockets enabled

the bionic library on android does not have gethostbyname_r even
though it has gethostbyname_r.  The configure script in wxwidgets
assumes if it has one it has the other.   This change does the right
thing for android, but perhaps the script should instead test for both?
added ifdef guard to compile when configured with --disable-xlocal