BUG: Fix Cppcheck build with ninja.

Cppcheck only builds with make.
Merge pull request #316 from thewtex/cppcheck-ninja

BUG: Fix Cppcheck build with ninja.