backport the defvar-local for Emacs < 24.3 compat