feat(jsoncpp): update jsoncpp to 0.10.7 in order to fix build error by gcc7+ (#256)

* feat(jsoncpp): update jsoncpp to 0.10.7 in order to fix build error by gcc7+

* doc(readme): modify jsoncpp to 0.10.7

* doc(readme): modify jsoncpp to 0.10.7
diff --git a/README.md b/README.md
index ddfd8d4..f4364db 100644
--- a/README.md
+++ b/README.md
@@ -33,9 +33,9 @@
 	- bzip2-devel 1.0.6: boost depend it

 	- zlib-devel

 

-The **build.sh** script will automatically download and build the dependency libraries including libevent, json and boost. It will save libraries under rocketmq-client-cpp folder, and then build both static and shared libraries for rocketmq-client. If the dependent libraries are built failed, you could try to build it manually with sources [libevent 2.0.22](https://github.com/libevent/libevent/archive/release-2.0.22-stable.zip "lib event 2.0.22"), [jsoncpp 0.10.6](https://github.com/open-source-parsers/jsoncpp/archive/0.10.6.zip  "jsoncpp 0.10.6"), [boost 1.58.0](http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz "boost 1.58.0")

+The **build.sh** script will automatically download and build the dependency libraries including libevent, json and boost. It will save libraries under rocketmq-client-cpp folder, and then build both static and shared libraries for rocketmq-client. If the dependent libraries are built failed, you could try to build it manually with sources [libevent 2.0.22](https://github.com/libevent/libevent/archive/release-2.0.22-stable.zip "lib event 2.0.22"), [jsoncpp 0.10.7](https://github.com/open-source-parsers/jsoncpp/archive/0.10.7.zip  "jsoncpp 0.10.7"), [boost 1.58.0](http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz "boost 1.58.0")

 

-If your host is not available to internet to download the three library source files, you can copy the three library source files (release-2.0.22-stable.zip  0.10.6.zip and boost_1_58_0.tar.gz) to rocketmq-client-cpp root dir, then the build.sh will automatically use the three library source files to build rocketmq-client-cpp:

+If your host is not available to internet to download the three library source files, you can copy the three library source files (release-2.0.22-stable.zip  0.10.7.zip and boost_1_58_0.tar.gz) to rocketmq-client-cpp root dir, then the build.sh will automatically use the three library source files to build rocketmq-client-cpp:

 

     sh build.sh

 

diff --git a/build.sh b/build.sh
index 4781b95..6979cd2 100755
--- a/build.sh
+++ b/build.sh
@@ -27,7 +27,7 @@
 fname_jsoncpp="jsoncpp*.zip"
 fname_boost="boost*.tar.gz"
 fname_libevent_down="release-2.1.11-stable.zip"
-fname_jsoncpp_down="0.10.6.zip"
+fname_jsoncpp_down="0.10.7.zip"
 fname_boost_down="1.58.0/boost_1_58_0.tar.gz"
 
 PrintParams() {
diff --git a/example/common.h b/example/common.h
index e3f1b09..7dbd3d9 100644
--- a/example/common.h
+++ b/example/common.h
@@ -17,6 +17,7 @@
 #ifndef ROCKETMQ_CLIENT4CPP_EXAMPLE_COMMON_H_
 #define ROCKETMQ_CLIENT4CPP_EXAMPLE_COMMON_H_
 
+#include <functional>
 #include <atomic>
 #include <chrono>
 #include <iostream>