Fix compile errors from cmake move

Change-Id: I626835f4bbe4ba58cdd00ac9d2603bb445583479
Reviewed-on: http://review.couchbase.org/30476
Reviewed-by: David Liao <david.liao@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>