Backport of QMimeType and QMimeDatabase from Qt5 into Qt4
