Only use smex in Emacs 24