Use distutils to determine the compiled extension module extension.

Closes #1.