mbuf: fix C++ build on void pointer cast