move internal memory management declarations from utils.h to cs_priv.h