Adding MimeDetector to common.