tdom won't work on 64 bits platforms until version 0.8.1, which is in cvs. I recommend pulling right to cvs version on debian unstable.