Add macro for detecting the output filename for gcc -MD...