src: Adding conditional compilation against boost or bundled "ndnboost"

Change-Id: Ic6a9718d6cad920ffa7a1b4d74851a338ac6f5da
diff --git a/src/util/blob-stream.hpp b/src/util/blob-stream.hpp
index 53d7e52..e376b77 100644
--- a/src/util/blob-stream.hpp
+++ b/src/util/blob-stream.hpp
@@ -9,11 +9,19 @@
 #ifndef NDN_BLOB_STREAM_HPP
 #define NDN_BLOB_STREAM_HPP
 
+#include <ndn-cpp/common.hpp>
+
+#if NDN_CPP_USE_SYSTEM_BOOST
+#include <boost/iostreams/detail/ios.hpp>
+#include <boost/iostreams/categories.hpp>
+#include <boost/iostreams/stream.hpp>
+namespace ndnboost = boost;
+#else
 // We can use ndnboost::iostreams because this is internal and will not conflict with the application if it uses boost::iostreams.
 #include <ndnboost/iostreams/detail/ios.hpp>
 #include <ndnboost/iostreams/categories.hpp>
 #include <ndnboost/iostreams/stream.hpp>
-#include <ndn-cpp/common.hpp>
+#endif
 
 namespace ndn {