Fix const-ness problem with mq_ptr.