Fix HtmlDelegate and move it to its own file. Also get rid of X11 on
CMakeLists.txt.