Update to latest lucas code from GMP 5.1.3.