fix a couple of bugs in the c/gcc checker

(introduced in the epic refactor)