encoding: don't inherit constructors from std::vector

This is a partial revert of commit 5d0b0106dfc7675f9048976d4dd4ea00e46e6c39,
which caused the following build failure with gcc-7:

./libndn-cxx.so: error: undefined reference to 'std::allocator<unsigned char>::allocator()'

Change-Id: I58136eb1901425158e529e37b6fa288b72fc46f6
diff --git a/src/encoding/buffer.cpp b/src/encoding/buffer.cpp
index 9390079..ce4c880 100644
--- a/src/encoding/buffer.cpp
+++ b/src/encoding/buffer.cpp
@@ -37,6 +37,11 @@
 
 Buffer::Buffer() = default;
 
+Buffer::Buffer(size_t size)
+  : std::vector<uint8_t>(size, 0)
+{
+}
+
 Buffer::Buffer(const void* buf, size_t length)
   : std::vector<uint8_t>(reinterpret_cast<const uint8_t*>(buf),
                          reinterpret_cast<const uint8_t*>(buf) + length)