Reorganized and completed a working GTK engine on linux