ifdef directives added around cout calls