Compatibility with libmagic-5.19
Merge branch 'libmagic-5.19-compatibility' into remove-external-dependencies