Use distutils.

Just discovered it while trying to fix CSmith's paths (not included in this PR).