Redo queue implementations.
Remove future implementation.
Improve gcc compatibility.