function dump(), dlog() and callback() are defined only when not exist [Closes #1187]