Add a check for gethrtime() when building

This change allows the couchbase client to build on SmartOS, which already defined gethrtime() in a system library. Without this, there is a build error saying conflicting types for hrtime_t and gethrtime.