Quiet logger messages onscreen in shipping mode.
De-const-reference a pair of functions that will honestly be a bit faster passed as value, and avoid some slightly dubious programming practices.
Fix build.