tde patch build fixes