Support both libmagic bindings.