Tools/MeshExtractor: Fixed a few errors under GCC and changed a bit how the GenericCache class works.