Fix errors reported by gcc4.6.1
Fix errors reported by gcc4.6.1

Change-Id: Id7abeabe1f6c01d228bfa5b6b3ee563dd83cf4c5
Reviewed-on: http://review.couchbase.org/9633
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>

couchbase/libcouchbase,signmotion/libcouchbase,mnunberg/libcouchbase,avsej/libcouchbase,trondn/libcouchbase,PureSwift/libcouchbase,mnunberg/libcouchbase,maxim-ky/libcouchbase,avsej/libcouchbase,kojiromike/libcouchbase,uvenum/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,mody/libcouchbase,maxim-ky/libcouchbase,signmotion/libcouchbase,trondn/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,PureSwift/libcouchbase,avsej/libcouchbase,senthilkumaranb/libcouchbase,mnunberg/libcouchbase,couchbase/libcouchbase,maxim-ky/libcouchbase,couchbase/libcouchbase,couchbase/libcouchbase,senthilkumaranb/libcouchbase,PureSwift/libcouchbase,senthilkumaranb/libcouchbase,kojiromike/libcouchbase,mody/libcouchbase,kojiromike/libcouchbase,avsej/libcouchbase,mody/libcouchbase,mnunberg/libcouchbase,mody/libcouchbase,PureSwift/libcouchbase,senthilkumaranb/libcouchbase,maxim-ky/libcouchbase,uvenum/libcouchbase,avsej/libcouchbase,trondn/libcouchbase,uvenum/libcouchbase,couchbase/libcouchbase,uvenum/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,avsej/libcouchbase,mnunberg/libcouchbase,signmotion/libcouchbase,trondn/libcouchbase,trondn/libcouchbase