Fix an output typo on test-c output

Isolate the single and plural outputs depending on the line number
output being used.
Isolate compile flags for ObjC/ObjC++ and C/C++

Isolate a conflicting flag used on Objective-C/C++ from usage on
C/C++ compile targets, to avoid a noisy unneeded warning.