Add C++ support to makefiles.