Compiling was failing due to a missing #include <stdlib.h> in a C code file, labeled as .cpp. (*grumblegrumblegrumble* >/dev/null) Anyway, I've 'fixed' the ebuild and added a diff, it should be possible to apply it for all gcc's, other then just 3.0.4, since it's just standard code. FYI, since I'm not exactly sure how things are organized I've left them at their original names, if the ebuild is renamed though, the diff will have to be renamed also due to the way it's patching things.
Created attachment 1295 [details] Updated ebuild.
Created attachment 1296 [details] New diff for updated ebuild.
Committed thanks for the patch!