Added support for SmartOS builds.

Change-Id: I9a826b97b07e66a6b41d85e432aa9090ad050564