gettimeofday: fix static build