Change log4j dependency to be a reflection based dependency.