elisp-comp: recompile only if necessary. realgud.el: add dependent packages. rest: reduce warnings by adding declare-function.