cpp: all source extensions changed to .cc for C++
cpp: fixed CAST errors from void *

* Automake configured to CXX (C++)
* Fixed CAST errors/warnings from void * to a type (UNIX/Darwin)