A collection of updates and improvements to action-graph games support.

* Revises libagg for compatibility with LLVM on OS X 10.9.
* Fixes memory leak pointed out by valgrind
* Adds some additional bounds checking and improves diagnostic output
* Updates config.h.in