Make debug and error routines non-static to prevent warnings from unused statics