Made CXX compile *.cpp files instead of CC.

Fixes issue #285
Merge pull request #287 from sej7278/master

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