Fixing #148

#148 
Fixed mode-deriving because the alias is not working inline. Switched to aliasing prog-mode on <24
Solution is from http://comments.gmane.org/gmane.emacs.devel/146152