Solaris

This fixes most issues (in addition to fixes in the solaris branch of Rcpp).