Repetier Until 1.0.x it should work. 1.5.x tree added new handling of some statements so it does not compile any more.
fanofcc Hmm i just tried to download Arduino 1.0. 5, remove the 1.6.5 form my PC and then install it. But the 1.0.5 version compiles Repetier 0.91 with error!
Avac 1.6.5 worked for my Mac, but not my PC, it's strange. Any of the 1.5.x should work, but make sure you have any hardware add-ons (for example, sanguino)
Avac Tree 1.0.x also works well for me. I suggest trying 1.0.6 first because it is not a beta unlike the 1.5.X. Also, it is the newest of the 1.0.X tree.