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.
Merge pull request #237 from bos/check-emacs-version

Check Emacs version at start