Revert "Update the cmake system."

This reverts commit d21ab17b676866a4847dd268f2a20619b48ce9a6.
Revert "Switch to ninja build system."

This reverts commit 40ccdd46d8d2587c0ef3bd3fba3c6ff4b8820e5f.