Starting from Python 3.13, Python does not support the configure script of the current version of the ninja we use. Hence update it to 1.12.1