Fix build on SmartOS

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