Fixed compilation errors in gui