guard against multiply-defined tf warning macros

at least on Saucy+hydro, the compiler was complaining that these macros were multiply defined, and was halting the build. adding these "ifndef" blocks allowed it to build.