GTK gui with SDL drawing; separate emulation thread