Fix error for before Emacs 24.3

'read-only-mode' is introduced at Emacs 24.3.
Merge pull request #1 from syohex/before-24.3

Fix error for before Emacs 24.3