d/rules: fix the build regression in the previous revision
This MR fixes the build regression in the previous revision using the new option --dwarf-version instead of -gdwarf. Also, encode the D compiler flags using CMake array syntax, as the build script expects a CMake array, not a plain string.