Set up cached variable for log4cpp library name to ensure correct library name is used in Debug builds.