`(eval-when-compile (defvar ...))` is not best approach and it is better to actually load the package defining the variables.  But I am not familiar with ecukes and it alters the functionality if you are doing some side effect at top level.  So I am playing on safer side here.  Load the module if you think it has no harm.