Merge changes I732e5b8a,I4271909e

* changes:
  libutils: RefBase DEBUG_REF love
  libutils: DEBUG_* modes compile forever