Use setuptools instead of distutils.core

setuptools can resolve dependencies and do other fine stuff.