Clean up EMACS_INT/int in cmds.c, as well as USE_SAFE_ALLOCA.