RT4129: BUF_new_mem_buf should take const void *