Fix struct declaration
Write implementation for cearth_gui constructors