* fixes crashes on events to deleted Qt elements
builds now app and trail target, lib_gui added, istrail function