Made code more independent of other packages

We now expect that other helper packages are already installed and
loaded prior to running this library.

Also, cleaned up more warnings and made this (I think) work with Emacs
version 23.