Introduce arch_interface to abstract interface specific functions away.
Fix shm-snapshot compatibility