[RFC] Transform global variable really_exiting into static.

Transform global variable really_exiting into static and some minor style changes.

Comments are welcome.
Although I prefer not to touch comments unrelated with really_exiting in globals.h, I can fix comments related to starting ou exiting (vars starting, exiting and full_screen).