fixed include and return value of dequeue() in MQ