Add missing requires so the code byte-compiles correctly

Also, replace a call to `first` with a call to `car`. The latter is core Emacs, the former is a `(require 'cl)` alias for the latter.