Rename .cpp files to .c and fix resulting issues