Got a reply from Zoran - he says he's had this sort of trouble compiling most things on Solaris 9, but that it seems to work fine to compile on an earlier version and move the finished result over. I did this with tDOM and so far it seems to be working fine.