Because common/ imports 'xterm', it also imported dom accidentally. Fixes #1990
Recent versions of TypeScript has improved the performance of project references so they are now viable to switch over to.