Use mime-types only on 1.9+