Cleanup build warnings

Mostly in the tests there were warnings about unsigned/signed comparison
mismatches.

Tested under gcc, nacl-i686, nacl-x86-64
Fix some glErrors under Pepper GLES

Eliminate some errors being reported when running under the Pepper
implementation of GLES.

1) With 8 vertex attributes allowed, RegalIff.cpp was passing in 99
   (RFF2A_Invalid) for the index of the SecondaryColor attribute,
   presumably from RFF2AMap8. Added a check for Invalid before
   binding the attribute.

2) Pepper GLES does not allow client side array data to be passed in via
   glVertexAttribPointer without an ARRAY_BUFFER being bound, and will
   generate an error if it is done. There were two places in the code where
   this could happen.

   * In Iff::Cleanup() the code was calling glVertexAttribPointer directly to
     reset state to default values with no ARRAY_BUFFER bound.

   * In RegalPpca when popping the client vertex array state, the code makes
     calls to the fixed function glVertexPointer, glNormalPointer, etc, which
     are then translated to calls to glVertexAttribPointer

   For both cases, I added some checks to detect PepperGLES, and avoid calls
   to reset the client vertex array state when non ARRAY_BUFFER is bound.

Tested by building and running the unit tests under osx/darwin x86_64,
and under nacl_x86-64 and nacl_i686 (on Linux). Tested more fully with
an integration test framework on nacl_i686 for our application which
will is set to fail for any detected GL errors.
Merge commit 'dcbd54385de2bd675419b10d0ef3cb2e64826ca4'
Merge commit '3ee34c803dfffb8d2b187ed1bff1fc6ab9ca884f'
Further Regal::Emu::Ppa refinements.
Initial glRect emulation layer.
Fixes.
Fix a typo I introduced.

I accidentally reversed the intended logic. Switch a not-equal
comparison to an equality check.
[NaCl] Fix warnings in ARM build
Update ES 2.0 extensions.
Cube map support for texture caching.
Improved ES 2.0 API filtering.
Fix for MAX_TEXTURE_SIZE and SUBPIXEL_BITS queries.
Improved logging for glSamplerParmeter calls.
[NaCl] Add glibc support
Remove stale dreamtorus VC project.
Merge branch 'add_glibc' of git://github.com/sbc100/regal
Add google snappy compression library sources, for apitrace purposes.
GLX: __GLXextFuncPtr
Code dispatch refinements.
Fixups for iOS XCode projects.
Revamp TLS (thread local storage) for storing more than context pointer per thread.
Add RegalPlugin private API for plugin dispatch layers to call back into Regal.
Resolve snappy library Windows compilation warnings.
Improvements for filtering emulation.
Support EXT_framebuffer_object on ES 2
Initial implementation of statistics gathering dispath.  REGAL_STATISTICS=1
FreeGLUT refresh.
RegalClientState functionally complete.
adjust location of android makefiles