libmagic: fix on pre-10.7