[PATCH v2 1/7] makefiles: Add support for C++ sources.