Improve priority queue pop test
add support for GCC 5: std::list::size() complexity is O(1)
Obsolete MSVC 2013 compatibility fix has been removed