build: Adjust order of link flags

The previous order of flags (unintentionally) had `-lboost_log` flag
specified before `-lndn-cxx`.  Incidentally, the order adjustment avoids
a symbol collision between the two libraries that prevented nfd-status
and nfdc from working on Ubuntu 14.04. A proper fix will follow (see #2859).

Change-Id: I68a5d37b013c1bf91b25e707a04ab1f66298a7f4
Refs: #3650
diff --git a/tools/wscript b/tools/wscript
index 1f99ef6..ee1909e 100644
--- a/tools/wscript
+++ b/tools/wscript
@@ -11,7 +11,7 @@
         bld(features=['cxx', 'cxxprogram'],
             target="../bin/%s" % name,
             source=[i] + bld.path.ant_glob(['%s/**/*.cpp' % name]),
-            use='ndn-cxx core-objects LIBRESOLV BOOST'
+            use='core-objects NDN_CXX BOOST LIBRESOLV'
             )
 
     # List all directories files (tool can has multiple .cpp in the directory)
@@ -21,7 +21,7 @@
             bld(features=['cxx', 'cxxprogram'],
                 target="../bin/%s" % name,
                 source=srcFiles,
-                use='ndn-cxx core-objects LIBRESOLV BOOST',
+                use='core-objects NDN_CXX BOOST LIBRESOLV',
                 includes='%s' % name,
                 )
 
diff --git a/wscript b/wscript
index f174342..206bb2d 100644
--- a/wscript
+++ b/wscript
@@ -181,7 +181,7 @@
         features='cxx pch',
         source=bld.path.ant_glob(['core/**/*.cpp'],
                                  excl=['core/logger*.cpp']),
-        use='version BOOST NDN_CXX LIBRT',
+        use='version NDN_CXX BOOST LIBRT',
         includes='. core',
         export_includes='. core',
         headers='common.hpp',