Wrapped cerr output in #ifdef DEBUG.