Replaced gettimeofday for older version.

In the postgres repo there's a older version of gettimeofday which makes
no use of UINT64CONST. Such a macro is defined only in newer versions of
c.h than the one present in libfortuna.