Flycheck support
Fix compiler warnings (and a bug they found)
Merge pull request #138 from david-christiansen/flycheck

Flycheck support + fix warnings on MELPA install