Changed .c files to .cpp because they're built with a C++ compiler; added  variable to Makefile.