Clean-up in g_main.c, g_local.h, and CMakeLists.txt.