I found a way to compile it. It seems that patch for 2.5 kernel doesn't work properly on 2.6 series, or at least on vanilla 2.6.0-test11.
See my "hacked" patch to make eject compile. I don't know if it's really "clean", but at least it makes eject compile ;-)