Fix compilation error in ant sample