Make log4j optional