D: Fix static library compilation
DigitalMars-D: Spell 'WIN32' properly
D: Separate flags CMake understands from UseD variables

These variables are not standard CMake variables and should be separated
out.