log: fixing build if log4cxx is not installed.