migrate from setuptools to distribute
various fixes and updates