Fix for packaging

- add autoload cookie for lazy loading
- replace goto-line with goto-char because goto-line causes
  byte-compile warnings.