Use setuptools in SmartOS stable pip installation. See #3698.
Fix Solaris test suite cleanup functions.