glretrace: Fix dumping of multi-sampled framebuffers.

Fix GL_INVALID_OPERATION in reading back framebuffer, due to target
mismatch.
inject: Produce a more helpful message when there is a 32/64 bits windows binaries mismatch.
readme: Add a bit of text describing how to determine the graphics api used by a windows app.
cli: Suggest using the trace -v option when wrapper wasn't found.
inject: Provide a helpful message when the wrapper DLL is never actually.

As that is a tell-tale sign the API is probably wrong.
glstate: Workaround bug in NVIDIA 319.60 implementation of glGetObjectLabel.
glstate: Dump KHR_debug state.
gltrace: Better describe ARB_internalformat_query2 parameters
gltrace: Force returning seomthing sensible on GL_MAX_LABEL_LENGTH.
Fix build with MacOSX 10.9 SDK.

Issue #181.
cgltrace: Use DYLD_FRAMEWORK_PATH instead of DYLD_LIBRARY_PATH.

It seems that from MacOSX 10.9 DYLD_FRAMEWORK_PATH takes precendence
over DYLD_LIBRARY_PATH for frameworks.

Issue #181.
retrace: Implement glxCopySubBufferMESA

This enables replay of a trace captured on ChromeOS.

Note: Replaying on EGL is not supported, (will trigger a warning),
since, as far as I know, EGL does not provide an equivalent function.
Fix compilation-breaking typo from previous commit.

I had fixed this before pushing the previous commit, but apparently
forgot to "git commit -a --amend". Sorry about that.
glretrace: Fix Mac and Windows builds due to lack of copySubBuffer method.

Instead of forcing each base class to implement copySubBuffer method,
simply provide a default implementation in the base class.
cgltrace: Enhance CGL parsing.

- Add recently added members
- Better trace opengl profile selection
- Cleanup/simplify spec
- Avoid deprecated warnings
Update Android.mk to add support for x86

Hardcoding the Android toolkit to ARM breaks emulator-x86 firefoxos target. This will check the TARGET_ARCH variable and choose the correct toolchain.
glstate: Bind GL_READ_FRAMEBUFFER to zero before dumping drawable.

Otherwise we endup reading from GL_READ_FRAMEBUFFER, instead of the
drawable as intended.

Fixes issue #180.
common: Conditionally compile-out os::log (issue #164).

For the purpose of integrating apitrace into Regal, unify the logging by
leaving out the defaut os::log method, optionally.
glretrace: Support MacOSX 4.1 contexts.

Not really tested but it should hopefully work.
glretrace: Cleanup profile specification.

We were specifying the profile both on visual and on context creation,
and they had to be consistents for things to work.  So instead specify
profile only when creating the visual.