Depend on mime >= 0.4

Fixes #8