[add] share lib used method. and apue chapter15 example.
[add] libconfig for *.cfg config parser.

Signed-off-by: Cedar Li <china.cedar.li@gmail.com>