Introduce AttribArray, a code generator for pseudo-type attrib_list.

Also use it for glXCreateConfigAttribsARB, which gives the expected
correct dumps in qapitrace and glretrace dump.
Nothing needs to change in dump code because it just reads whatever
types were written during tracing. Writing different types into
different array elements is allowed by the format, and it turns out
that even older versions of apitrace will correctly display dumps
created with this patch.
Proper AttribArray / attrib_list support for applicable EGL functions.

The functions are:

eglChooseConfig
eglCreateWindowSurface
eglCreatePbufferSurface
eglCreatePixmapSurface
eglCreatePbufferFromClientBuffer
eglCreateContext
eglCreateImageKHR
eglCreateDRMImageMESA
Proper AttribArray / attrib_list support for applicable GLX functions.

The functions are:

glXChooseFBConfig
glXCreateWindow
glXCreatePixmap
glXCreatePbuffer
glXChooseFBConfigSGIX
glXCreateGLXPbufferSGIX
glXBindTexImageEXT
glXBindVideoDeviceNV
Delete the file object if the trace file could not be loaded due to being an unsupported (newer) version.

Fix small memory leak / assert if a trace file can't be loaded due to
being recorded with a newer version number than qapitrace. In this
scenario, there is no error message that gets shown in the UI, but the
title bar is updated with the trace file name, so the situation is very
confusing.
Resolve C4267 MS compiler warnings

warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
Skip apitrace from FirefoxOS if NDK is not present

Skip apitrace build when compiling FirefoxOS if NDK is not present in
prebuilt/ndk/android-ndk-r7.
Use consistent cpp logic for including backtrace.h

__linux__ -> __ELF__
gui: Allow to edit strings.

Based upon the surrounding code.  There might be a better way to achieve
it, but this seems better than no support.

Issue #159.
Support for Mac OS X 10.5 Leopard

CGLShareGroupObj and IOSurfaceRef were added in 10.6 Snow Leopard SDK
Add workarounds to glimports.hpp to support building for pre-10.6.
glxtrace: Trace GLX_NV_present_video/GLX_NV_video_output/GLX_NV_video_capture calls minimally.
wgltrace: Update wglapi.py from specs.

Via the scripts in the scripts subdir.

Might not be perfect but better than nothing.
d3dstate: Remove spurious statements.
directxtex: Fix assertion failures on MinGW.
d3dstate: Dump compressed D3D10/11 textures.
cli/trim: Fix error message.
cli/sed: Very basic stream editing of traces.

Extremely limited, but have to start from somewhere.
Allow a custom terminator and support valueless keys better.
Proper AttribArray / attrib_list support for applicable CGL functions.

It's just CGLChoosePixelFormat here.
Improvements in AttribArray / attrib/list code generation.

- Treat unknown keys the same way while counting elements and while
  processing them (they are assumed to be followed by an int value).
- Support custom terminators.
- Serialize the terminator.
- Reduce the line count of generated code a bit.
- Add forgotten begin/endElement() around writing the keys.
- Improve comment wording.
Use the right attrib_list terminator and support the remaining functions.

Remaining functions were

eglLockSurfaceKHR
eglCreateSyncKHR
eglCreateFenceSyncNV