BUG: Fix Cppcheck build with ninja.

Cppcheck only builds with make.