Cleanup iostream includes

Change-Id: I16dd945998463975b140c7a010d64a112f95d8ba
diff --git a/src/exclude.cpp b/src/exclude.cpp
index 88e51db..900d933 100644
--- a/src/exclude.cpp
+++ b/src/exclude.cpp
@@ -25,6 +25,7 @@
 #include "encoding/block-helpers.hpp"
 
 #include <boost/range/adaptor/reversed.hpp>
+#include <sstream>
 
 namespace ndn {
 
diff --git a/src/exclude.hpp b/src/exclude.hpp
index 23dac46..e3494f2 100644
--- a/src/exclude.hpp
+++ b/src/exclude.hpp
@@ -27,7 +27,6 @@
 #include "name-component.hpp"
 #include "encoding/encoding-buffer.hpp"
 
-#include <sstream>
 #include <map>
 
 namespace ndn {
diff --git a/src/interest.cpp b/src/interest.cpp
index 3f8352b..26b564e 100644
--- a/src/interest.cpp
+++ b/src/interest.cpp
@@ -24,6 +24,7 @@
 #include "data.hpp"
 
 #include <cstring>
+#include <sstream>
 
 namespace ndn {
 
@@ -169,6 +170,14 @@
   }
 }
 
+std::string
+Interest::toUri() const
+{
+  std::ostringstream os;
+  os << *this;
+  return os.str();
+}
+
 // ---- matching ----
 
 bool
diff --git a/src/interest.hpp b/src/interest.hpp
index 1ee2cda..121541b 100644
--- a/src/interest.hpp
+++ b/src/interest.hpp
@@ -341,14 +341,6 @@
 std::ostream&
 operator<<(std::ostream& os, const Interest& interest);
 
-inline std::string
-Interest::toUri() const
-{
-  std::ostringstream os;
-  os << *this;
-  return os.str();
-}
-
 inline bool
 operator==(const Interest& lhs, const Interest& rhs)
 {
diff --git a/src/name-component.cpp b/src/name-component.cpp
index 045d5f2..6bccced 100644
--- a/src/name-component.cpp
+++ b/src/name-component.cpp
@@ -31,6 +31,7 @@
 #include "util/string-helper.hpp"
 
 #include <boost/algorithm/string/trim.hpp>
+#include <sstream>
 
 namespace ndn {
 namespace name {
diff --git a/src/net/face-uri.cpp b/src/net/face-uri.cpp
index d550fd5..11e4fe5 100644
--- a/src/net/face-uri.cpp
+++ b/src/net/face-uri.cpp
@@ -1,5 +1,5 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
  * Copyright (c) 2013-2017 Regents of the University of California,
  *                         Arizona Board of Regents,
  *                         Colorado State University,
@@ -33,6 +33,7 @@
 #include <boost/mpl/for_each.hpp>
 #include <boost/regex.hpp>
 #include <set>
+#include <sstream>
 
 namespace ndn {
 
diff --git a/src/security/transform/stream-sink.cpp b/src/security/transform/stream-sink.cpp
index 58208c0..543e532 100644
--- a/src/security/transform/stream-sink.cpp
+++ b/src/security/transform/stream-sink.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2013-2016 Regents of the University of California.
+/*
+ * Copyright (c) 2013-2017 Regents of the University of California.
  *
  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
  *
@@ -21,6 +21,8 @@
 
 #include "stream-sink.hpp"
 
+#include <ostream>
+
 namespace ndn {
 namespace security {
 namespace transform {
diff --git a/src/security/transform/stream-sink.hpp b/src/security/transform/stream-sink.hpp
index f384dc4..ae5d567 100644
--- a/src/security/transform/stream-sink.hpp
+++ b/src/security/transform/stream-sink.hpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2013-2016 Regents of the University of California.
+/*
+ * Copyright (c) 2013-2017 Regents of the University of California.
  *
  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
  *
@@ -23,7 +23,6 @@
 #define NDN_CXX_SECURITY_TRANSFORM_STREAM_SINK_HPP
 
 #include "transform-base.hpp"
-#include <iostream>
 
 namespace ndn {
 namespace security {
diff --git a/src/security/transform/stream-source.cpp b/src/security/transform/stream-source.cpp
index 539506e..33b26ae 100644
--- a/src/security/transform/stream-source.cpp
+++ b/src/security/transform/stream-source.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2013-2016 Regents of the University of California.
+/*
+ * Copyright (c) 2013-2017 Regents of the University of California.
  *
  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
  *
@@ -20,6 +20,8 @@
  */
 
 #include "stream-source.hpp"
+
+#include <istream>
 #include <vector>
 
 namespace ndn {
diff --git a/src/security/transform/stream-source.hpp b/src/security/transform/stream-source.hpp
index 5dcefdd..d19daec 100644
--- a/src/security/transform/stream-source.hpp
+++ b/src/security/transform/stream-source.hpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2013-2016 Regents of the University of California.
+/*
+ * Copyright (c) 2013-2017 Regents of the University of California.
  *
  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
  *
@@ -23,7 +23,6 @@
 #define NDN_CXX_SECURITY_TRANSFORM_STREAM_SOURCE_HPP
 
 #include "transform-base.hpp"
-#include <iostream>
 
 namespace ndn {
 namespace security {
diff --git a/src/util/io.hpp b/src/util/io.hpp
index cad5a26..5a8034a 100644
--- a/src/util/io.hpp
+++ b/src/util/io.hpp
@@ -1,5 +1,5 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
  * Copyright (c) 2013-2017 Regents of the University of California.
  *
  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
@@ -25,7 +25,6 @@
 #include "concepts.hpp"
 #include "../encoding/block.hpp"
 
-#include <iostream>
 #include <fstream>
 
 namespace ndn {
diff --git a/src/util/time.cpp b/src/util/time.cpp
index 8452075..6f669cb 100644
--- a/src/util/time.cpp
+++ b/src/util/time.cpp
@@ -1,5 +1,5 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
  * Copyright (c) 2013-2017 Regents of the University of California.
  *
  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
@@ -23,6 +23,7 @@
 #include "time-custom-clock.hpp"
 
 #include <boost/date_time/posix_time/posix_time.hpp>
+#include <sstream>
 
 namespace ndn {
 namespace time {