Fixup cmake build

Change-Id: Ia63d702015fe58226cfe32afb24690cc52ba870c
Reviewed-on: http://review.couchbase.org/29632
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>