Replace functions used only interactively
Replace interactive-p with called-interactively-p

If support for Emacs versions prior to 23.1 is to be dropped (#156) than
interactive-p (obsolete as of 23.2) can be removed.
Merge pull request #159 from akamch/fix-warnings

Fix some of the compilation warnings