Fixed package requirements
Fix most flycheck warnings