Initial steps to compilation, adding #resettodom option.