cmake changes for couchdb

Change-Id: If0f29acdd08ff8b148a5362f3a6fb4d6a5be901c