build: Fixing gcc compilation

Change-Id: I925de1d5a687398a918d1b41826cb44e2c1ea170
diff --git a/include/ndn-cpp/encoding/tlv.hpp b/include/ndn-cpp/encoding/tlv.hpp
index 0edf94a..fabf571 100644
--- a/include/ndn-cpp/encoding/tlv.hpp
+++ b/include/ndn-cpp/encoding/tlv.hpp
@@ -10,6 +10,7 @@
 #ifndef NDN_TLV_HPP
 #define NDN_TLV_HPP
 
+#include <stdexcept>
 #include "buffer.hpp"
 #include "endian.h"