Fix byte-compile warnings in cmake-mode.el

cmake-mode.el throws a bunch of warnings when being byte-compiled. This small set of patches fixes them, wherever possible.