Testing with C sources and CommonCPPCTest

Modified CommonCPPCTest.cmake to also include C source files as possible tests.
Also fixed the incorrect suffix stripping from .cpp filenames, and extended to include .c suffix for C files.