Fix building with gdc and ldc2