lib: fix egcd on even modulo
0.15.1