fix CC and CXX inheritance