Removed dependency on dbg.h; allows for drop-in portability.