Declare global variables with defvar

Global variables should be declared. Using not declared variables
causes byte compile warnings.
Merge pull request #17 from syohex/declare-global-variables

Declare global variables with defvar