TOOLS: Work around a deque constructor not usable with CC

The patch was provided by Laurent Blume (patch #3614504).