Fix compilation error with as_deque in C++11.