SmartOS Fixes

This adds code to IFE to be compatible with SmartOS, some contributions by @face and others by @rogerhub and myself

Should be merged with https://github.com/postwait/vippy/pull/6