Drive the PriorityQueue successfully and fix the issue to linke static libaray into dynamic library.