Make `rust-mode` derive from `prog-mode` if available

This let rust-mode be classified as a programming mode, which is only relevant to Emacs 24.x. This way, for example, `prog-mode-hook`s can be run when entering `rust-mode`.