Fix configuration with --disable-tests

Change-Id: I857b5600bcc8606722a4bf233f620a9f094d631d
Reviewed-on: http://review.couchbase.org/31338
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>