libmagic binding for lua