Putting
package require tdom
in modules/tcl/init.tcl (the global init.tcl file) seems to work, at least for installing and running the core 5.0.