Allow rudimentary CMake builds on unix

Change-Id: I806ebe85ef6626d438e1e3e33dd5d0dbb268294d
Reviewed-on: http://review.couchbase.org/31640
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>