many small changes in gtk and smp library