Need libmagic for filetype inference.