Fix out of the source builds

Change-Id: I6e03ac4f5d420026fc20797424c8672687b39171
Reviewed-on: http://review.couchbase.org/33935
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>