Make mmmagic an optional dependency

Due to installation difficulties on some platforms (e.g. CentOS 5.8),
supply a reasonable fallback.