bug fix in bm_process.h(.cpp): change pbuf to unsigned char*