The simplify and validate commands can function without a display connection, only preview absolutely needs one. Allow this, by using gtk_init_check().
Move the tools directory to be toplevel, and instead of recompiling sources twice, link them with the our new static libgtk.a.