Fix couchdb build