CCBC-209 Add support for building with CMake on win32

Building with CMake is still in an experimental state.

Change-Id: Id0abc2ab05fe1c82a154776052a9b47145251774
Reviewed-on: http://review.couchbase.org/26795
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>