You can use the same compiler as the 2006/2007 RC. You can get the 2004 default code from here:
http://www.ifirobotics.com/first-legacy.shtml or you can use this year's default code by following the instructions in Using_a_2005_FRC.txt included in the default code.