Fixed ifdefs for System.TM.