Use `cl-labels` and `cl-flet` instead of `labels` and `flet` (which are obsolete as of Emacs 24.3).