adding libmagic