fix gettime compilation on OS X