fix compatibility issues with setuptools 0.7 and later