Add check for system gethrtime()

This change allows the couchbase client to build on SmartOS.