Fix for install with package.el

- add autoload cookie for lazy loading
- fix byte-compile warnings of unknown function