Move towards C89 (step 1)

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