setup.py: cleanup and fixes for operation under easy_install