Add missing #ifdefs so that APEX will build without TAU.