added missing after-init-hook for global-flycheck-mode