[build][feature] Add support for C++ sources -

This is specifically required for Energia, but can be utilised
by mbed if we were to complile localy using make.