caja: move more arch-independent stuff to -common package