adapt to minor api change in Rcpp11