Refer to std::queue using its namespaces. Fixes compilation problems on Solaris 11 (issue #840).