Import queue.h and tree.h data structure headers.
Use BSD queue implementation for linked lists in scene graph.
Add command line history using BSD queues.
Use warn() function to print error messages and warnings to both console and stderr.