Use new flycheck-define-checker macro

The macro flycheck-declare-checker is obsolete. Use new flycheck-define-checker.