backport of util.debuglog from node v0.11