Add a check for gethrtime() when building

Same change as https://github.com/couchbase/couchbase-ruby-client/pull/7, but also on release 1.2