[common] use .cpp for c++ source file.