Fixed some DMD compile errors.
Fixed GDC compile errors.
Fixed more DMD compile errors.