Change interface to get mimetype to fix x86 issue