build: decouple handling of boost libs not needed by libndn-cxx

Refs: #5210
Change-Id: Ia8e3d80dd92b5e8a7bd7d79ea811332220a883ed
diff --git a/tools/ndnsec/wscript b/tools/ndnsec/wscript
index e27c1e8..4ff1c5c 100644
--- a/tools/ndnsec/wscript
+++ b/tools/ndnsec/wscript
@@ -7,7 +7,7 @@
                 source=bld.path.ant_glob('*.cpp', excl=['main.cpp']),
                 features='pch',
                 headers='ndnsec-pch.hpp',
-                use='ndn-cxx')
+                use='BOOST_TOOLS ndn-cxx')
 
     bld.program(name='tool-ndnsec',
                 target=top + 'bin/ndnsec',