Add debug flag -g to all C++ compiles.