Don't use C++ stuff in files used from C

Change-Id: Ied6b0e26db4ac85381be23e091f528c909127cd4
Reviewed-on: http://review.couchbase.org/29980
Reviewed-by: David Liao <david.liao@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>