Use gettimeofday for more accurate dates on unixes.

Fix bug in Now(): the time returned should be localtime not gmtime.