fix flycheck compatibility

https://github.com/flycheck/flycheck/commit/8b61b9b62c617f27f07c454614012cfaf55457f8
broke the current integration with flycheck
Merge pull request #7 from bsuh/issue6

fix flycheck compatibility