Merge pull request #287 from sej7278/master

Made CXX compile *.cpp files instead of CC.

Fix #285