Check Emacs version at start

I ran into this when I tried to use ghc-mod with Emacs 24.2, and got a mysterious error telling me that `defvar-local` was not defined.