Feature/logging function

here is a pretty simple change allowing me to override `fprintf(stderr, ...)` from the R side with a `#define` without forcing new headers upon you -- a good approach borrowed from Armadillo and RcppArmadillo