For the first problem(nscache):
make sure having compiled nscache with:
make install AOLSERVER=/usr/local/aolserver
For the third problem (tDOM):
make sure having uncommented the lines with your desired configure:
../configure --enable-threads --disable-tdomalloc
--prefix=/usr/local/aolserver --with-tcl=/usr/local/lib
Bye