[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.
Merge pull request #89 from xively/cpp_support_in_makefiles

Add C++ support in the build system