reorganized buildfile for TC.