fix flycheck compatibility

https://github.com/flycheck/flycheck/commit/8b61b9b62c617f27f07c454614012cfaf55457f8
broke the current integration with flycheck

Closes #6