software/common.mak: add C++ definitions