cache: use size_t instead of int (enable 4G+ cache size)
(cherry picked from commit 26c296e99c9e09639a50e983af45a92b5f190393)
Fix build after last commit:
include stddef.h in cache.h
(cherry picked from commit 5b9d369e3328499c17374c20d6fb84cd2be435c6)