util/ConstBuffer: wrap assert() in NDEBUG check

Fixes build failure because assert.h was not included.
util/ConstBuffer: add method skip_front()