When I try to compile gui from the trunk, I get a duplicate member error in NSMenuItemCell.h on _backgroundColor.
Upon looking at the code, I noticed that NSButtonCell was recently modified to include a _backgroundColor member. Since NSMenuItemCell extends NSButtonCell, the _backgroundColor member of NSMenuItemCell should be removed.
I tried this on my machine, and it seems to work fine. I have attached a patch that does this.