fix warnings in gui main.c