Added CXXFLAGS to .d file generation command, since the compiler might throw errors if for example the standard used is not set