Fix incorrect suffix stripping from CPP filenames; include C files as possible sources of test targets.