GDB won't load the program fully unless -g is in the compiler