configure: Added NDN_CPP_HAVE_PROTOBUF.
util: In logging, use #if NDN_CPP_HAVE_LOG4CXX instead of #ifdef NDN_CPP_HAVE_LOG4CXX .