Fix warning: reference to free variable `autopair-mode'
Merge pull request #13 from ptpt/master

Make sure `define-minor-mode` comes before `define-globalized-minor-mode`