X11 replaced debug functions with custom ones