Allow compilation with --enable-werror on macosx

Change-Id: I26d4e14627625524fc7b64cda911b5da205e0934
Reviewed-on: http://review.couchbase.org/28222
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Fix warnings from visual c compiler

Change-Id: I9919df4b0989599a9e2f7f0c5206d5db00b861c6
Reviewed-on: http://review.couchbase.org/28223
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>