ifdef guards for log4cplus