SmartOS support for setting hostnames [GH-1672]