Add some checks for emacs version before loading some stuff.