modified for flymake on emacs24.4
defvar & make-variable-buffer-local replaced defvar-local