Damn, I don't really have any good answers unfortunately. The only thing I had to go on was that it was working outside of Xcode, but without that I'm pretty much out of ideas. "It works fine on my Mac", but I realize how useless that statement is.
One thing you could try is downloading DOM 2.0 (also available on Sourceforge) which didn't have daeSidRefCache. I really doubt daeSidRefCache is actually the problem though.
Without being able to sit down at your machine to try stuff I'm not sure what else to do. I'll keep thinking about it though.