add library libconfig, add a interface for liblog