Use distutils where possible.
Merge pull request #1332 from int3/use-distutils

Use distutils.