Move the code to C89

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