make modifications for Rcpp 0.11