MB-9515: Check the couchstore API during configure

Change-Id: I46b02c55ab7fa744ec5cafddb90d8a3075fc2fb7
Reviewed-on: http://review.couchbase.org/31313
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>