Make sure flycheck is enabled for all relevant programming modes