toggle-read-only is deprecated for read-only-mode

Per emacs 24.3 warning, this just updates it to use the new name and clears the
compilation warning.