cache: use correct header for clock_gettime

Fixes compilation on OSX.