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
Fix GCC 4.8 <atomic> incompatibility
fix typo
fix doc