This diff migrates all existing build configurations to use cmake and
ninja, and adds a new configuration to run the build with autotools in
order to prevent regressions.
For the builds to pass:
Depends on D4706 (avoid triggering an ASAN issue on asm code).
Depends on D4708 (don't fail ubsan).