Fix D2 compilation.