Fix build failure due to mixed declarations and code

Change-Id: I5e905b2c6746831df3485531229c493a335ceae7
Reviewed-on: http://review.couchbase.org/28542
Tested-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>