Direct2D build fixes.