allow log4cxx dependency to be disabled