make it resistant to potential const correctness fix in Rcpp. related to RcppCore/Rcpp#211
Merge pull request #2 from romainfrancois/master

make it resistant to potential const correctness fix in Rcpp.