Updated CoherentUI related code to compile using version 1.7.
Additionally fixed a bug causing a pure virtual error on quit.