Converting C codebase to C++11: renamed all converted .c and .h files to .cpp and .hpp respectively + adjust the build system for these changes