Use log4cxx instead of libcwd for logging.