remove redundant cache vars
use our own clock_gettime on win32