core: ignore non-Ethernet AF_LINK addresses when enumerating NICs.

Also modernize the code with some C++11 features.

Change-Id: Ibd29b39c37fdce8f87f917ab0cf48750e631e76c
diff --git a/wscript b/wscript
index eb9ca79..8baa805 100644
--- a/wscript
+++ b/wscript
@@ -66,6 +66,9 @@
     conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'],
                    uselib_store='NDN_CXX', mandatory=True)
 
+    conf.checkDependency(name='librt', lib='rt', mandatory=False)
+    conf.checkDependency(name='libresolv', lib='resolv', mandatory=False)
+
     boost_libs = 'system chrono program_options random'
     if conf.options.with_tests:
         conf.env['WITH_TESTS'] = 1
@@ -85,9 +88,6 @@
     conf.load('unix-socket')
     conf.checkWebsocket(mandatory=True)
 
-    conf.checkDependency(name='librt', lib='rt', mandatory=False)
-    conf.checkDependency(name='libresolv', lib='resolv', mandatory=False)
-
     if not conf.options.without_libpcap:
         conf.check_asio_pcap_support()
         if conf.env['HAVE_ASIO_PCAP_SUPPORT']: