Fixes for libmagic 5.14 and older.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>