Use the correct version flag for gdc and ldc.