Added support for SmartOS builds.

Change-Id: I9a826b97b07e66a6b41d85e432aa9090ad050564
Reviewed-on: http://review.couchbase.org/33787
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Brett Lawson <brett19@gmail.com>