Update SimpleWrapper mechanism to allow recording changes to arbitrary globals, and use this to implement support for the getopt() function.
Merge branch 'master' into development
Make DYLD_LIBRARY_PATH used for dot depend on the location of dot.
Support gettimeofday() and settimeofday().
Add support for stat().
Correctly layout known areas as static rather than dynamic on OS X.