defvar definitions for these variables, like this:
(defvar foo)
Such a definition has no effect except to tell the compiler
not to warn about uses of the variable foo in this file.
require for that package to avoid compilation warnings
for them. For instance,
(eval-when-compile
(require 'foo))
with-no-warnings around it.