More fixes for RPM building w/CMake

Change-Id: I2b29e266e2eab480613232fa15ed12daa03d6ba4
Reviewed-on: http://review.couchbase.org/43024
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>