CBD-1191: Support for cmake and non cmake version

Change-Id: I275ea0ac5bc5f06bbd28ad68bd5b47df8f2a8dbd
Reviewed-on: http://review.couchbase.org/33757
Reviewed-by: Eric Limare <eric.limare@couchbase.com>
Tested-by: Eric Limare <eric.limare@couchbase.com>
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>