TcpTransport: need to #include <stdlib.h> for malloc.
diff --git a/src/transport/tcp-transport.cpp b/src/transport/tcp-transport.cpp
index b1d4f0d..ea32c4d 100644
--- a/src/transport/tcp-transport.cpp
+++ b/src/transport/tcp-transport.cpp
@@ -6,6 +6,7 @@
  */
 
 #include <stdexcept>
+#include <stdlib.h>
 #include <ndn-cpp/node.hpp>
 #include "../c/transport/tcp-transport.h"
 #include "../c/encoding/binary-xml-element-reader.h"
diff --git a/src/transport/udp-transport.cpp b/src/transport/udp-transport.cpp
index eb8b0d7..2d4a902 100644
--- a/src/transport/udp-transport.cpp
+++ b/src/transport/udp-transport.cpp
@@ -6,6 +6,7 @@
  */
 
 #include <stdexcept>
+#include <stdlib.h>
 #include <ndn-cpp/face.hpp>
 #include "../c/transport/udp-transport.h"
 #include "../c/encoding/binary-xml-element-reader.h"