I may be posting this in the wrong place. If so, sorry.
I found this out the hard way:
If you create a sketch and name it main, it will NOT compile. I assume arduino defines it somewhere, though I could not find it.
I have version 1.0.1. I don't know if this is true in other versions.