use cl-letf instead of flet
Merge pull request #45 from quelpa/replace-flet-with-cl

use cl-letf instead of flet