For PriorityQueue, fix the 64bit and new compiler issue.