Use cl-flet instead of flet in Emacs version >= 24.3