Replace deprecated flet with cl-flet

Gets rid of some warnings in emacs 24.3.