Add scratch build support