Link with libmagic