Fix byte compilation warnings, largely by using cl-lib throughout