Implement workaround for distutils bug

Resolves #80