introduce getifaddrs for toolchains without it

David found that uclibc did not provide this slightly esoteric api
and provided one from BSD that can be built by the library internally.

AG: Made contingent on configure option --enable-builtin-getifaddrs

Signed-off-by: David <cymerio@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
index b36a9b2..dd6e8d7 100644
--- a/lib/libwebsockets.c
+++ b/lib/libwebsockets.c
@@ -25,7 +25,11 @@
 #include <tchar.h>
 #include <io.h>
 #else
+#ifdef LWS_BUILTIN_GETIFADDRS
+#include <getifaddrs.h>
+#else
 #include <ifaddrs.h>
+#endif
 #include <sys/un.h>
 #include <sys/socket.h>
 #include <netdb.h>