cbufp: compile fixes