Mask clut indexes for > 8-bit clut indexes.

Fixes #1532.
Merge pull request #1543 from unknownbrackets/texcache

Mask clut indexes for > 8-bit clut indexes.
Buildfix
More lang fixes
Merge pull request #1544 from cyb3rm4n/master

More language fixes
ColorDouble needs to be in the fragment shader ID
Fix a bug caused by the recent JIT optimization : ignore destroyed blocks.