Cache2: Fix compilation errors in CacheIndex.cpp in release build