Solaris 10 fixes

These changes were applied directly on the CRAN sources around 12/7/2013
by Dr. Ripley, and the version changed to 1.2.1.
Rcpp 0.11.0 compatibility fixes

These changes were prescribed by Dirk Eddelbuettel over email. They should
be compatible with both Rcpp 0.10.6 and Rcpp 0.11.0.