MB-9510: Couchstore compiles with -std=89

There are still lots of warnings, but at least it compiles

Change-Id: I45a61062bfd3af7468d2cac9655faa8aa580d0ec
Reviewed-on: http://review.couchbase.org/30318
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>