Try to be compatible with different versions of setuptools / distutils.