changed after-init-hook to global-flycheck-mode

global-flycheck-modes doesn't seem to exist in the source, and the info file mentions global-flycheck-mode instead.