Set -MTd/-MDd in the same way as -MT/-MD

This was overlooked in 67e5b04.